<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>templi php 框架: Formcheck类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">templi php 框架
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.4 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li class="current"><a href="annotated.html"><span>类</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="搜索" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>类列表</span></a></li>
      <li><a href="classes.html"><span>类索引</span></a></li>
      <li><a href="hierarchy.html"><span>类继承关系</span></a></li>
      <li><a href="functions.html"><span>类成员</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>全部</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>类</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>函数</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-static-methods">静态 Public 成员函数</a> &#124;
<a href="classFormcheck-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">Formcheck类 参考</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
静态 Public 成员函数</h2></td></tr>
<tr class="memitem:a77d0bf7d4f98c32b2df999a72592b83d"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#a77d0bf7d4f98c32b2df999a72592b83d">checking</a> (&amp;$data, &amp;$message, $rule=array())</td></tr>
<tr class="separator:a77d0bf7d4f98c32b2df999a72592b83d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af901cc088235f326d623e7829fca3857"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af901cc088235f326d623e7829fca3857"></a>
static&#160;</td><td class="memItemRight" valign="bottom"><b>isunique</b> ($data, $param=null)</td></tr>
<tr class="separator:af901cc088235f326d623e7829fca3857"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abcfbdebe86a5f6b0702e925886a4d8fb"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#abcfbdebe86a5f6b0702e925886a4d8fb">numrange</a> ($data, $param=null)</td></tr>
<tr class="separator:abcfbdebe86a5f6b0702e925886a4d8fb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23d9479633556715288ad160356624d6"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#a23d9479633556715288ad160356624d6">strlength</a> ($data, $param=null)</td></tr>
<tr class="separator:a23d9479633556715288ad160356624d6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4c6fef1b5cf4e37c8cdc3fee901d055"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#ad4c6fef1b5cf4e37c8cdc3fee901d055">isequal</a> ($data, $param=null)</td></tr>
<tr class="separator:ad4c6fef1b5cf4e37c8cdc3fee901d055"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae526b8b3ff2d6d99b4831e952bd9034e"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#ae526b8b3ff2d6d99b4831e952bd9034e">ismobile</a> ($data, $param=null)</td></tr>
<tr class="separator:ae526b8b3ff2d6d99b4831e952bd9034e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a031a58d2c695b7d60eef357630f80f2b"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#a031a58d2c695b7d60eef357630f80f2b">isnumber</a> ($data, $param=null)</td></tr>
<tr class="separator:a031a58d2c695b7d60eef357630f80f2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab2672d61cbd1e2404a6f5d3887af324c"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#ab2672d61cbd1e2404a6f5d3887af324c">is_notnumber</a> ($data, $param=null)</td></tr>
<tr class="separator:ab2672d61cbd1e2404a6f5d3887af324c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a503a4427a6554f78a494e96c343b30df"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#a503a4427a6554f78a494e96c343b30df">isnotnull</a> (&amp;$data, $param=null)</td></tr>
<tr class="separator:a503a4427a6554f78a494e96c343b30df"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a021044c7c8b946c563154198e7362ea9"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#a021044c7c8b946c563154198e7362ea9">isemail</a> ($data, $param=null)</td></tr>
<tr class="separator:a021044c7c8b946c563154198e7362ea9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9a1ada95b47c19e105d82537795fe41d"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#a9a1ada95b47c19e105d82537795fe41d">isarray</a> ($data, $param=null)</td></tr>
<tr class="separator:a9a1ada95b47c19e105d82537795fe41d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8a9af0e66525a064cde848350011787b"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#a8a9af0e66525a064cde848350011787b">new_htmlspecialchars</a> (&amp;$data)</td></tr>
<tr class="separator:a8a9af0e66525a064cde848350011787b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3715bf3885536c931d8d247abd7dbb34"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#a3715bf3885536c931d8d247abd7dbb34">safe_replace</a> (&amp;$data)</td></tr>
<tr class="separator:a3715bf3885536c931d8d247abd7dbb34"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3bde91e6b9fff6b62e79ca948d31151f"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#a3bde91e6b9fff6b62e79ca948d31151f">new_strip_tags</a> (&amp;$data, $param=null)</td></tr>
<tr class="separator:a3bde91e6b9fff6b62e79ca948d31151f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae005da7a0d5557f7f3109ee4bc16c232"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#ae005da7a0d5557f7f3109ee4bc16c232">is_password</a> ($password, $param=null)</td></tr>
<tr class="separator:ae005da7a0d5557f7f3109ee4bc16c232"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac8b275856713753bfd34bc102f7eb605"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#ac8b275856713753bfd34bc102f7eb605">is_username</a> ($username, $param=null)</td></tr>
<tr class="separator:ac8b275856713753bfd34bc102f7eb605"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5215dac34663216209f2e1377a195ca"><td class="memItemLeft" align="right" valign="top">static&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classFormcheck.html#af5215dac34663216209f2e1377a195ca">is_badword</a> ($string, $param=null)</td></tr>
<tr class="separator:af5215dac34663216209f2e1377a195ca"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>form 验证 处理类 </p>
<dl class="section author"><dt>作者</dt><dd>七觞酒  <a href="#" onclick="location.href='mai'+'lto:'+'739'+'80'+'060'+'0@'+'qq.'+'co'+'m'; return false;">73980<span style="display: none;">.nosp@m.</span>0600<span style="display: none;">.nosp@m.</span>@qq.c<span style="display: none;">.nosp@m.</span>om</a> </dd></dl>
<dl class="section date"><dt>日期</dt><dd>2013-1-19</dd></dl>
<p>字段验证类 字段处理 $check = <a class="el" href="classFormcheck.html#a77d0bf7d4f98c32b2df999a72592b83d">Formcheck::checking</a>($data, $message=null,array( 'manager_name'=&gt;array('func'=&gt;array('isnotnull','is_username'),'note'=&gt;array('账号不能为空！','账号格式错误')), 'manager_password'=&gt;array('func'=&gt;'isnotnull','note'=&gt;'密码不能为空！'), 'manager_password2'=&gt;array('func'=&gt;'isnotnull','note'=&gt;'重复密码不能为空！'), 'manager_ruleid'=&gt;array('func'=&gt;array('isnotnull','isequal'),'param'=&gt;array(array('max'=&gt;100,'min'=&gt;20),22),'note'=&gt;array('请选择角色！','不相等')) )); </p>
</div><h2 class="groupheader">成员函数说明</h2>
<a class="anchor" id="a77d0bf7d4f98c32b2df999a72592b83d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::checking </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$message</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$rule</em> = <code>array()</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>批量验证表单字段 </p>

</div>
</div>
<a class="anchor" id="af5215dac34663216209f2e1377a195ca"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::is_badword </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$string</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$param</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>检测输入中是否含有 错误字符/敏感字符</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramtype">char</td><td class="paramname">$string</td><td>要检查的字符串名称 </td></tr>
    <tr><td class="paramtype">null</td><td class="paramname">$param</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>TRUE or FALSE </dd></dl>

</div>
</div>
<a class="anchor" id="ab2672d61cbd1e2404a6f5d3887af324c"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::is_notnumber </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$param</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否不为数字 </p>

</div>
</div>
<a class="anchor" id="ae005da7a0d5557f7f3109ee4bc16c232"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::is_password </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$password</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$param</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>检查密码长度是否符合规定</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramtype">STRING</td><td class="paramname">$password</td><td></td></tr>
    <tr><td class="paramtype">null</td><td class="paramname">$param</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>TRUE or FALSE </dd></dl>

</div>
</div>
<a class="anchor" id="ac8b275856713753bfd34bc102f7eb605"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::is_username </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$username</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$param</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>检查用户名是否符合规定</p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramtype">STRING</td><td class="paramname">$username</td><td>要检查的用户名 </td></tr>
    <tr><td class="paramtype">null</td><td class="paramname">$param</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>TRUE or FALSE </dd></dl>

</div>
</div>
<a class="anchor" id="a9a1ada95b47c19e105d82537795fe41d"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::isarray </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$param</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>验证是否为数组 </p>

</div>
</div>
<a class="anchor" id="a021044c7c8b946c563154198e7362ea9"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::isemail </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$param</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>验证邮箱 </p>

</div>
</div>
<a class="anchor" id="ad4c6fef1b5cf4e37c8cdc3fee901d055"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::isequal </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$param</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>两个值是否相等 </p>

</div>
</div>
<a class="anchor" id="ae526b8b3ff2d6d99b4831e952bd9034e"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::ismobile </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$param</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否为手机号 </p>

</div>
</div>
<a class="anchor" id="a503a4427a6554f78a494e96c343b30df"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::isnotnull </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$param</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>验证是否为空 </p>

</div>
</div>
<a class="anchor" id="a031a58d2c695b7d60eef357630f80f2b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::isnumber </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$param</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>是否为数字 </p>

</div>
</div>
<a class="anchor" id="a8a9af0e66525a064cde848350011787b"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::new_htmlspecialchars </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$data</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回 转换html 标签为html 实体 后的文本 </p>

</div>
</div>
<a class="anchor" id="a3bde91e6b9fff6b62e79ca948d31151f"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::new_strip_tags </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$param</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回经过 strip_tags 处理过的 文本 </p>

</div>
</div>
<a class="anchor" id="abcfbdebe86a5f6b0702e925886a4d8fb"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::numrange </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$param</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>数字大小 在木范围内 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramtype"></td><td class="paramname">$data</td><td></td></tr>
    <tr><td class="paramtype">null</td><td class="paramname">$param</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<a class="anchor" id="a3715bf3885536c931d8d247abd7dbb34"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::safe_replace </td>
          <td>(</td>
          <td class="paramtype">&amp;&#160;</td>
          <td class="paramname"><em>$data</em>)</td><td></td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>返回经过 安全过滤后的文本 </p>

</div>
</div>
<a class="anchor" id="a23d9479633556715288ad160356624d6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static Formcheck::strlength </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$data</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>$param</em> = <code>null</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramtype"></td><td class="paramname">$data</td><td></td></tr>
    <tr><td class="paramtype">array</td><td class="paramname">$param</td><td>$param['encode'] 编码 $param['max'] 最大长度 $param['min'] 最小长度 </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd>bool </dd></dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>templi/Formcheck.class.php</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
生成于 2014年 一月 15日 星期三 15:42:01 , 为 templi php 框架使用  &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.4
</small></address>
</body>
</html>
